package com.ding.webservice.service.impl;

import com.ding.webservice.dto.UserDTO;
import com.ding.webservice.service.IUserServer;
import org.springframework.stereotype.Service;

import javax.jws.WebService;

/**
 * @author dingfeng
 * @version 1.0
 * @DEC
 * @date 2022/3/11 22:36
 */
@Service
@WebService(serviceName = "IUserServer", // 与接口中指定的name一致
        targetNamespace = "http://service.webservice.ding.com", // 与接口中的命名空间一致
        endpointInterface = "com.ding.webservice.service.IUserServer" // 接口地址
)
public class UserServerImpl implements IUserServer {
    @Override
    public UserDTO getUser(String id) {
        UserDTO user = new UserDTO();
        user.setId(id);
        user.setAddress("上海市浦东新区");
        user.setAge(25);
        user.setName("gongj");
        return user;
    }

    @Override
    public String getOutRepData() { return "{\"error\":\"\",\"result\":[{\"addDataVos\":[],\"cellDataVos\":[{\"cellType\":\"I\",\"column\":1,\"row\":1,\"value\":\"应收账款周转率\"},{\"cellType\":\"I\",\"column\":1,\"row\":2,\"value\":\"综合排程偏差率\"},{\"cellType\":\"I\",\"column\":1,\"row\":3,\"value\":\"现金满足投资比\"},{\"cellType\":\"I\",\"column\":1,\"row\":4,\"value\":\"现金到期债务比\"},{\"cellType\":\"I\",\"column\":1,\"row\":5,\"value\":\"带息负债规模\"},{\"cellType\":\"I\",\"column\":1,\"row\":6,\"value\":\"风险监控消缺率\"},{\"cellType\":\"I\",\"column\":1,\"row\":7,\"value\":\"营银财三方对账率\"},{\"cellType\":\"I\",\"column\":1,\"row\":8,\"value\":\"省级集中支付比例\"},{\"cellType\":\"I\",\"column\":1,\"row\":9,\"value\":\"资产现金回收率\"},{\"cellType\":\"I\",\"column\":1,\"row\":10,\"value\":\"财务费用率\"},{\"cellType\":\"I\",\"column\":1,\"row\":11,\"value\":\"集约调控资金节约财务费用\"},{\"cellType\":\"I\",\"column\":1,\"row\":12,\"value\":\"综合资金成本\"},{\"cellType\":\"I\",\"column\":1,\"row\":13,\"value\":\"电费预收比例\"},{\"cellType\":\"I\",\"column\":1,\"row\":14,\"value\":\"电费收入预测偏差率\"},{\"cellType\":\"I\",\"column\":1,\"row\":15,\"value\":\"电费回收率\"},{\"cellType\":\"I\",\"column\":1,\"row\":16,\"value\":\"年度投资资金完成率\"},{\"cellType\":\"I\",\"column\":1,\"row\":17,\"value\":\"年度投资计划转资率\"},{\"cellType\":\"I\",\"column\":1,\"row\":18,\"value\":\"资产运行维护费率\"},{\"cellType\":\"R\",\"column\":2,\"row\":1,\"value\":\"1\"},{\"cellType\":\"R\",\"column\":2,\"row\":2,\"value\":\"2\"},{\"cellType\":\"R\",\"column\":2,\"row\":3,\"value\":\"3\"},{\"cellType\":\"R\",\"column\":2,\"row\":4,\"value\":\"4\"},{\"cellType\":\"R\",\"column\":2,\"row\":5,\"value\":\"5\"},{\"cellType\":\"R\",\"column\":2,\"row\":6,\"value\":\"6\"},{\"cellType\":\"R\",\"column\":2,\"row\":7,\"value\":\"7\"},{\"cellType\":\"R\",\"column\":2,\"row\":8,\"value\":\"8\"},{\"cellType\":\"R\",\"column\":2,\"row\":9,\"value\":\"9\"},{\"cellType\":\"R\",\"column\":2,\"row\":10,\"value\":\"10\"},{\"cellType\":\"R\",\"column\":2,\"row\":11,\"value\":\"11\"},{\"cellType\":\"R\",\"column\":2,\"row\":12,\"value\":\"12\"},{\"cellType\":\"R\",\"column\":2,\"row\":13,\"value\":\"13\"},{\"cellType\":\"R\",\"column\":2,\"row\":14,\"value\":\"14\"},{\"cellType\":\"R\",\"column\":2,\"row\":15,\"value\":\"15\"},{\"cellType\":\"R\",\"column\":2,\"row\":16,\"value\":\"16\"},{\"cellType\":\"R\",\"column\":2,\"row\":17,\"value\":\"17\"},{\"cellType\":\"R\",\"column\":2,\"row\":18,\"value\":\"18\"},{\"cellType\":\"N\",\"column\":3,\"row\":5,\"value\":494.34},{\"cellType\":\"N\",\"column\":3,\"row\":6,\"value\":1},{\"cellType\":\"N\",\"column\":3,\"row\":3,\"value\":0.9253},{\"cellType\":\"N\",\"column\":3,\"row\":4,\"value\":0.0375},{\"cellType\":\"N\",\"column\":3,\"row\":1,\"value\":1.6721},{\"cellType\":\"N\",\"column\":3,\"row\":2,\"value\":0.002},{\"cellType\":\"N\",\"column\":3,\"row\":18,\"value\":0.0042},{\"cellType\":\"N\",\"column\":3,\"row\":7,\"value\":1},{\"cellType\":\"N\",\"column\":3,\"row\":8,\"value\":0.8707},{\"cellType\":\"N\",\"column\":3,\"row\":9,\"value\":0.0015},{\"cellType\":\"N\",\"column\":3,\"row\":10,\"value\":0.0188},{\"cellType\":\"N\",\"column\":3,\"row\":11,\"value\":0.1875},{\"cellType\":\"N\",\"column\":3,\"row\":12,\"value\":0.0427},{\"cellType\":\"N\",\"column\":3,\"row\":13,\"value\":0.553},{\"cellType\":\"N\",\"column\":3,\"row\":14,\"value\":0.0068},{\"cellType\":\"N\",\"column\":3,\"row\":15,\"value\":0.9981},{\"cellType\":\"N\",\"column\":3,\"row\":16,\"value\":0.0592},{\"cellType\":\"N\",\"column\":3,\"row\":17,\"value\":0.052}],\"compname\":\"国网福建省电力有限公司\",\"formatId\":1793608,\"repdate\":\"2022-03-31\",\"repname\":\"资金创一流指标报表\"}],\"success\":true}";
    }
}